package com.erp.erp_servers.supplier.imp;

import com.erp.erp_dao.Supplie.ISupplierDao;
import com.erp.erp_entitys.Supplier.SupplierEntity;
import com.erp.erp_servers.supplier.ISupplierServers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName ImpSupplierServers
 * @Description 测试用例接口实现类
 * @Author songjizhen
 * @Date 2020/6/17 14:02
 * @Version 1.0
 */
@Service
public class ImpSupplierServers implements ISupplierServers {
    @Autowired
    ISupplierDao supplierDao;

    /**
     * 不分页获取所有数据
     * @return
     */
    @Override
    public List<SupplierEntity> selectSupplier() {
        return supplierDao.selectSupplier();
    }

    /**
     * 分页获取所有数据
     * @return
     */
    @Override
    public List<SupplierEntity>  UsersByPage() {

        List<SupplierEntity> list= supplierDao.UsersByPage();
        return list;
    }
}